]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
osdWindow: Fix blurriness at certain resolutions
authorSilvère Latchurié <slatchurie@gmail.com>
Fri, 26 May 2017 15:46:35 +0000 (17:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 8 May 2018 19:04:02 +0000 (21:04 +0200)
The y position wasn't rounded, leading to some blurriness at vertical
resolutions that aren't a multiple of 4 (e.g. 1050).

https://bugzilla.gnome.org/show_bug.cgi?id=782011

js/ui/osdWindow.js

index f27f48965a6a14c25dbaebd0f1ca49ae893a80c5..a739124138e737cca71099a5ab9e2ab703ac93e1 100644 (file)
@@ -204,7 +204,7 @@ var OsdWindow = new Lang.Class({
 
         let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
         this._icon.icon_size = popupSize / (2 * scaleFactor);
-        this._box.translation_y = monitor.height / 4;
+        this._box.translation_y = Math.round(monitor.height / 4);
         this._boxConstraint.minSize = popupSize;
     }
 });